//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-03A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Cole Swindell','Coffee Butler Amphitheater','Key West, FL','Thursday','5/2/2024','7:00 PM','6154166','Cole-Swindell-5-2-2024'],['Sunfest: Nelly, Cole Swindell & Rebelution - 3 Day Pass','Sunfest Grounds','West Palm Beach, FL','Friday','5/3/2024','TBD','6124777','Sunfest--Nelly--Cole-Swindell---Rebelution---3-Day-Pass-5-3-2024'],['SunFest: Cole Swindell, Yung Gravy, The Revivalists & Elle King - Saturday','Sunfest Grounds','West Palm Beach, FL','Saturday','5/4/2024','12:00 PM','6124779','SunFest--Cole-Swindell--Yung-Gravy--The-Revivalists---Elle-King---Saturday-5-4-2024'],['Cole Swindell, Dylan Scott & Meghan Patrick','Budweiser Gardens','London, Canada','Thursday','5/16/2024','7:00 PM','6128932','Cole-Swindell--Dylan-Scott---Meghan-Patrick-5-16-2024'],['Cole Swindell, Dylan Scott & Meghan Patrick','Tribute Communities Centre','Oshawa, Canada','Friday','5/17/2024','7:00 PM','6124642','Cole-Swindell--Dylan-Scott---Meghan-Patrick-5-17-2024'],['Cole Swindell, Dylan Scott & Meghan Patrick','Canadian Tire Centre','Ottawa, Canada','Saturday','5/18/2024','7:00 PM','6128934','Cole-Swindell--Dylan-Scott---Meghan-Patrick-5-18-2024'],['Cole Swindell, Dylan Scott & Jon Langston','Brandon Amphitheater','Brandon, MS','Friday','5/24/2024','7:00 PM','6128935','Cole-Swindell--Dylan-Scott---Jon-Langston-5-24-2024'],['Cole Swindell, Dylan Scott & Jon Langston','The Wharf Amphitheatre','Orange Beach, AL','Saturday','5/25/2024','7:00 PM','6128936','Cole-Swindell--Dylan-Scott---Jon-Langston-5-25-2024'],['Cole Swindell','Sand Mountain Park & Amphitheater','Albertville, AL','Sunday','5/26/2024','6:00 PM','6329597','Cole-Swindell-5-26-2024'],['Cole Swindell, Dylan Scott & Mackenzie Carpenter','Leader Bank Pavilion','Boston, MA','Thursday','5/30/2024','7:00 PM','6128937','Cole-Swindell--Dylan-Scott---Mackenzie-Carpenter-5-30-2024']],'"Cole Swindell"','https://www.ticketnetwork.com');